﻿using System.ComponentModel.DataAnnotations;

namespace StarsAdmin.Application.Role.Dtos
{
    public class AddRoleInput
    {
        /// <summary>
        /// 角色名称
        /// </summary>
        [Required(ErrorMessage = "name 字段是必须的")]
        public string Name { get; set; }

        /// <summary>
        /// 角色标识
        /// </summary>
        [Required(ErrorMessage = "identifying 字段是必须的")]
        public string Identifying { get; set; }

        /// <summary>
        /// 角色描述
        /// </summary>
        public string? Description { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnabled { get; set; }

        /// <summary>
        /// 角色拥有的菜单Id
        /// </summary>
        public long[]? MenuIds { get; set; }
    }
}